package org.jivesoftware.smackx.pubsub;

import org.jivesoftware.smack.packet.PacketExtension;

public class SimplePayload
  implements PacketExtension
{
  private String elemName;
  private String ns;
  private String payload;

  public SimplePayload(String paramString1, String paramString2, String paramString3)
  {
    this.elemName = paramString1;
    this.payload = paramString3;
    this.ns = paramString2;
  }

  public String getElementName()
  {
    return this.elemName;
  }

  public String getNamespace()
  {
    return this.ns;
  }

  public String toString()
  {
    return super.getClass().getName() + "payload [" + toXML() + "]";
  }

  public String toXML()
  {
    return this.payload;
  }
}